//
//  LDSqlData.h
//  Gift
//
//  Created by 李迪 on 15/11/25.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
@class GiftModel;

@interface LDSqlData : NSObject

@property (nonatomic, retain) GiftModel *model;

+ (instancetype)sharedDataBase;

- (void)openDB;

- (void)createTable;

- (NSMutableArray *)selectCollectWithTitle:(NSString *)title;

- (void)insertCollect:(GiftModel *)model;

- (void)deleteCollectWithTitle:(NSString *)title;

- (void)closeDB;

- (NSMutableArray *)selecteCollect;

@end

